<?php
	include ('db.php');
    $username = $_POST['username'];
    $password = $_POST['password'];
    
    $query = mysql_query("Select * From Users Where username = '".$username."'");
    
    if (strlen(mysql_error()) == 0){
    	if(mysql_num_rows($query)>0){
    		$arr = mysql_fetch_array($query);
    		if (strcmp($arr["password"],$password) == 0){
    			echo "Success";
    		}else {
    			echo "password is not match";
    		}
    	}else {
    		echo "User is not found";
    	}
    }
?>